﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace deckAnalyser.Domain
{
  public abstract class DomainObject
  {
    public delegate void UpdateHandler(DomainObject sender);
    public event UpdateHandler OnUpdate = null;
    protected void NotifyListeners()
    {
      if (OnUpdate != null)
        OnUpdate(this);
    }

    private bool isDirty = true;
    public bool IsDirty
    {
      get { return isDirty; }
      protected set { isDirty = value; }
    }

    public abstract String Caption
    {
      get;
    }

  }
}
